package com.etc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;

@RestController
public class BControllerService {

	@RequestMapping("/testb")
	@LcnTransaction
	@Transactional
	public String home(@RequestParam(name="value", defaultValue="999") String value) {
		
		int r = dao.save(value);
		return r + "> ok-B";
	}
	
	@Autowired
	ValueDao dao;
}
